/**
 * 执法人员
 * @constructor
 */
function Home2() {
}

Home2.init = function () {

    // initTree();

    //通知公告列表
    $('#tableList4').bootstrapTable({
        url: '/noticeUsers/tableSearch',
        method: 'post',
        striped: true, //是否显示行间隔色
        toolbar: "#toolbar",
        sidePagination: "true",
        dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
        showToggle: false, //是否显示详细视图和列表视图的切换按钮
        striped: true, // 是否显示行间隔色
        //search : "true",
        uniqueId: "id",
        // pageList : [ 5, 10, 20,50,100],//可选择单页记录数
        pageSize: "5",
        pagination: true, // 是否分页
        sortable: false, // 是否启用排序
        sidePagination: 'server', // 设置为服务器端分页     客户端：client
        search: false,
        showColumns: false,
        showRefresh: false,
        showFooter: false,
        //得到查询的参数
        queryParams: function (params) {
            //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
            var query_params = {
                //********table的参数 不变
                pageSize: params.limit,                         //页面大小
                pageIndex: (params.offset / params.limit) + 1,   //页码
                sort: params.sort,      //排序列名
                sortOrder: params.order, //排位命令（desc，asc）
                //********
                //获取查询的对象，往下加入
                status: 0
            };
            return query_params;
        },
        columns: [
            {
                //field: 'Number',//可不加
                // title: '序号',//标题  可不加
                align: "center",
                width: 40,
                visible: false,
                formatter: function (value, row, index) {
                    var pageSize = $('#tableList4').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
                    var pageNumber = $('#tableList4').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
                    return pageSize * (pageNumber - 1) + index + 1;//返回每条的序号： 每页条数 * （当前页 - 1 ）+ 序号
                }
            },
            {field: 'content', align: 'center'},
            {
                align: 'center',
                width: '15%',
                formatter: function (value, row, index) {
                    let optionHtml = "<a class=\"btn btn-info btn-xs\"  href=\"javascript:void(0)\"  onclick='seeNotice(" + JSON.stringify(row) + ")'  title=\"查看\" >查看</a>";
                    return optionHtml;
                }
            },
        ]
    });
    //推送消息
    $('#tableList3').bootstrapTable({
        url: '/newsUsers/tableSearch',
        method: 'post',
        striped: true, //是否显示行间隔色
        toolbar: "#toolbar",
        sidePagination: "true",
        dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
        showToggle: false, //是否显示详细视图和列表视图的切换按钮
        striped: true, // 是否显示行间隔色
        //search : "true",
        uniqueId: "id",
        // pageList : [ 5, 10, 20,50,100],//可选择单页记录数
        pageSize: "5",
        pagination: true, // 是否分页
        sortable: false, // 是否启用排序
        sidePagination: 'server', // 设置为服务器端分页     客户端：client
        search: false,
        showColumns: false,
        showRefresh: false,
        showFooter: false,
        //得到查询的参数
        queryParams: function (params) {
            //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
            var query_params = {
                //********table的参数 不变
                pageSize: params.limit,                         //页面大小
                pageIndex: (params.offset / params.limit) + 1,   //页码
                sort: params.sort,      //排序列名
                sortOrder: params.order, //排位命令（desc，asc）
                //********
                //获取查询的对象，往下加入
                status: 0
            };
            return query_params;
        },
        columns: [
            {
                //field: 'Number',//可不加
                // title: '序号',//标题  可不加
                align: "center",
                width: 40,
                visible: false,
                formatter: function (value, row, index) {
                    var pageSize = $('#tableList3').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
                    var pageNumber = $('#tableList3').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
                    return pageSize * (pageNumber - 1) + index + 1;//返回每条的序号： 每页条数 * （当前页 - 1 ）+ 序号
                }
            },
            {field: 'content', align: 'center'},
            {
                align: 'center',
                width: '15%',
                formatter: function (value, row, index) {
                    let optionHtml = "<a class=\"btn btn-info btn-xs\"  href=\"javascript:void(0)\"  onclick='seeNews(" + JSON.stringify(row) + ")'  title=\"查看\" >查看</a>";
                    return optionHtml;
                }
            },
        ]
    });

    //获得待审记录
    $('#tableList5').bootstrapTable({
        url: '/processstay/tableSearch',
        method: 'post',
        striped: true, //是否显示行间隔色
        toolbar: "#toolbar",
        sidePagination: "true",
        dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
        showToggle: false, //是否显示详细视图和列表视图的切换按钮
        striped: true, // 是否显示行间隔色
        //search : "true",
        uniqueId: "id",
        // pageList : [ 5, 10, 20,50,100],//可选择单页记录数
        pageSize: "5",
        pagination: true, // 是否分页
        sortable: false, // 是否启用排序
        sidePagination: 'server', // 设置为服务器端分页     客户端：client
        search: false,
        showColumns: false,
        showRefresh: false,
        showFooter: false,
        //得到查询的参数
        queryParams: function (params) {
            //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
            var query_params = {
                //********table的参数 不变
                pageSize: params.limit,                         //页面大小
                pageIndex: (params.offset / params.limit) + 1,   //页码
                sort: params.sort,      //排序列名
                sortOrder: params.order, //排位命令（desc，asc）
                //********
                //获取查询的对象，往下加入
                status: 0
            };
            return query_params;
        },
        columns: [
            {
                //field: 'Number',//可不加
                // title: '序号',//标题  可不加
                align: "center",
                width: 40,
                visible: false,
                formatter: function (value, row, index) {
                    var pageSize = $('#tableList5').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
                    var pageNumber = $('#tableList5').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
                    return pageSize * (pageNumber - 1) + index + 1;//返回每条的序号： 每页条数 * （当前页 - 1 ）+ 序号
                }
            },
            {
                align: 'center',
                formatter:function (value,row,index) {
                    return row.name+" —— "+row.launchTime;
                }
            },
            {
                align: 'center',
                width: '15%',
                formatter: function (value, row, index) {
                    let optionHtml = "<a class=\"btn btn-info btn-xs\"  href=\"javascript:void(0)\"  onclick='Approval(" + JSON.stringify(row) + ")'  title=\"审批\" >审批</a>";
                    return optionHtml;
                }
            },
        ]
    });
}

//查看公告
function seeNotice(data) {
    $.ajax({
        url: "/noticeUsers/read/"+data.id,
        type: "get",
        contentType: "application/json",
        dataType: "json",
        success: function (dat) {
            if (dat.code === "200") {
                $('#title').html(dat.data.title);
                $('#myContent').html(dat.data.content);
                $('#publisher').text(dat.data.userName);
                $('#publisheTime').text('       ' + dat.data.noticeDate);
                if (dat.data.enclosure != null && dat.data.enclosure != ""){
                    $("#showEnclosure").show();
                    $("#downEnclosure").attr("href",dat.data.enclosure);
                }else {
                    $("#showEnclosure").hide();
                    $("#downEnclosure").attr("href","");
                }
                $('#myModalView').modal('show')
                $("#tableList4").bootstrapTable("refreshOptions", {pageNumber: 1});
            }
        }
    });
}

//查看推送消息
function seeNews(data) {
    $.ajax({
        url:  "/newsUsers/read/"+data.id,
        type: "get",
        contentType: "application/json",
        dataType: "json",
        success: function (dat) {
            if (dat.code === "200") {
                $('#title1').html(dat.data.title);
                $('#myContent1').html(dat.data.content);
                $('#publisher1').text(dat.data.userName);
                $('#publisheTime1').text('       ' + dat.data.createTime);
                $('#myModalView1').modal('show')
                $("#tableList3").bootstrapTable("refreshOptions", {pageNumber: 1});
            }
        }
    });
}

let styId; //待审记录id
let types; //审批方式
let rid; //审批人
function Approval(data) {
    $("#modaltitle").empty();
    $("#modaltitle").text(""+data.name+"审批");
    styId = data.id;
    types = data.types;
    rid = data.reviewerId;
    $.ajax({
        url: "/processstay/getFormById",
        type: "post",
        data: {"id": data.id},
        success: function (dat) {
            if (dat.code === "200") {
                //判断表单
                if (data.form == 1) { //投诉举报
                    //给页面赋值 投诉举报信息
                    $("#showContent").empty();
                    $("#showContent").append("<label class=\"col-lg-2 control-label\">投诉举报时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input type=\"text\" value='"+dat.data.reportTime+"' readonly id=\"report_reportTime\" name=\"text_reportTime\"\n" +
                        "                                                   autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "                                    <label class=\"col-lg-2 control-label\">投诉举报事项</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.reportThings+"' type=\"text\" id=\"report_reportThings\"\n" +
                        "                                                   name=\"text_reportThings\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "                                    <label class=\"col-lg-2 control-label\">需要提供的事实照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <a href=\"javascript:;\" class=\"a-upload\">\n" +
                        "                                                <img id=\"report_photo\" src=\""+dat.data.photo+"\" class=\"img-responsive\">\n" +
                        "                                            </a>\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "                                    <label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" id=\"report_remark\" name=\"text_remark\"\n" +
                        "                                                   autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>");
                }
                if (data.form == 2) { //动物诊疗机构日常巡查记录
                    //给页面赋值 动物诊疗机构日常巡查记录
                    $("#showContent").empty();
                    $("#showContent").append("<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">巡查日期</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.inspectionDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">被巡查对象名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.inspectionName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">法人或负责人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.legalPerson+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">从业地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.address+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">诊疗范围</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.treatment+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否办理动物诊疗许可证</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.licence+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">取得《动物诊疗许可证》后条件是否变化</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.changeSituation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">显著位置是否公示许可证和从业人员资格证</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.qualification+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">是否规范使用病历</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.medicalRecord+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否规范使用处方笺</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.prescription+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">病历档案是否保存三年以上</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.archives+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否规范使用兽药和兽医器械</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.apparatus+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">是否按规定年度报告活动</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.activity+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">从业人员是否取得执业或助理执业兽医资格证</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.employees+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">是否经兽医执业注册、登记备案</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.registration+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">变更诊疗机构有无重新办理注册或者备案</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.keepRecord+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">是否实行注册执业兽医师出具处方</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.issuePrescription+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否使用规范格式的处方</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.standardFormat+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">是否按规定合理用药</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.rationalUse+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">有无使用假劣兽药和国家禁用的药品、化合物</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.fakeMedicine+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">是否按规定定期报告执业活动情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.periodicReport+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否有出证、出租、出借执业证书情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.lend+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">监督检查情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.supervision+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">巡查现场图片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.inspectionPhoto+"' autocomplete=\"off\" class=\"img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">巡查人员</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.inspectionPerson+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">巡查单位名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.inspectionCompany+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>");
                }
                if (data.form == 3) { //养殖场(户)日常巡查记录信息
                    //给页面赋值 养殖场(户)日常巡查记录信息
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">巡查日期</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.inspectionDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">被巡查对象名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.inspectionName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.address+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">饲养畜禽种类</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.animalType+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">种公畜禽存栏数</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.male+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">经产母畜禽存栏数</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.menstruation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">后备母畜禽存栏数</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.reserve+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">商品母畜禽</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.shop+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">现场畜禽存栏数是否与养殖档案记录相符</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.consistent+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否取得《动物防疫条件合格证》</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.certificate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">饲养动物是否健康</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.healthy+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">养殖档案简历情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.archives+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">强制免疫计划落实情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.implementation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>");
                }
                if (data.form == 4) { //生猪运输台账信息
                    //给页面赋值 生猪运输台账信息
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否已阅读温馨提示内容</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.readActivity+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">生猪运输车辆备案号</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.recordNo+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">生猪运输车辆备案表</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.recordForm+"' type=\"text\" autocomplete=\"off\" class=\"img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">运载时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carTime+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">检疫证明号码</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.proofCode+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">生猪头数</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.pigNumber+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">起运完整地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.startFullAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">养殖户名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.farmerName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">到达完整地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.endFullAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">运载路径</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.route+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">装载前清洗消毒情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.startDisinfection+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">装载后清洗消毒情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.endDisinfection+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">染疫、病死、死因不明生猪处置情况</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.disposal+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>");
                }
                if (data.form == 5) { //疫证明(产品B)出证申请信息
                    //给页面赋值 疫证明(产品B)出证申请信息
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">申报单位全称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.company+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">货主</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.owner+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">产品名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.productName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">数量及单位</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">产地</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.place+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">生产单位名称地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.address+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">目的地</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.destination+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">相关照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.photo+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">销售时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleTime+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n");
                }
                if (data.form == 6) { //检疫证明(产品A)出证申请信息
                    //给页面赋值 检疫证明(产品A)出证申请信息
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">申报单位全称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.company+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">货主</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.owner+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">产品名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.productName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">数量及单位(公斤)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">生产单位名称地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.address+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">到达省、市、县名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.addressName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">承运人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carry+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">承运人电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carryPhone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">运载方式</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transportation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">运载工具号码</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transportationNo+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">运载工具消毒药品</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.drug+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">相关照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.photo+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">销售时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleTime+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>");
                }
                if (data.form == 7) { //动物来源情况报备单
                    //给页面赋值 动物来源情况报备单
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">报备人(或单位)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.reporter+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">调入日期</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transferDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">调入地址(产地)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transferAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">生产单位</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.productionUnit+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">调入动物种类</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.animalType+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">调入数量(头、羽)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">动物检疫合格证号</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.certificate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">当前地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.location+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">上传动物实时状态照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.animalPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">其他图片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.otherPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n");
                }
                if (data.form == 8) { //肉品经营台账信息
                    //给页面赋值 肉品经营台账信息
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">肉品经营者姓名</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.operator+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">日期</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.businessDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">销售地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleLocation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">经营头数</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">经营生猪肉品来源地(养殖地点)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.breedLocation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">饲养户名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.breedName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">上传《动物检疫合格证明》</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.photo+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">产地检疫证明号码</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.certificateNumber+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">生猪耳标号码</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.pigNo+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "\n");
                }
                if (data.form == 9) { //出具《福建省动物、动物产品准调证》申请单
                    //给页面赋值 出具《福建省动物、动物产品准调证》申请单
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">是否已阅读温馨提示内容</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.readActivity+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">申请日期</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.applicationDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">申请单位(或个人）名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.applicationName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">企业代码(个人身份证号码)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.enterpriseNo+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">营业执照或身份证照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.licensePhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">发货地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.address+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">发货单位</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.company+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">销售去向</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleDestination+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">接货单位</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.receivingUnit+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">动物、动物产品类别</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.animalType+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">调运数量(头、公斤、羽)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">运输方式</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transport+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">承运人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carry+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">承运人电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carryPhone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">车号</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carNo+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">拟调入时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transferTime+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">用途</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.purpose+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">运输路经省市县名</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.route+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">拟调入动物或产品的非洲猪瘟检测报告</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.reportPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "\n" +
                        "</div>\n");
                }
                if (data.form == 10) { //零星散户产地检疫申报单
                    //给页面赋值 零星散户产地检疫申报单
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">申报人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.declarant+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">身份证号</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.idCard+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">申报人联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.dphone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">养殖户所在乡镇</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.address+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">具体地址</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.specificAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">销售去向</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">具体地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.toSpecificAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">购买人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.buyer+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">购买人联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.buyPhone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">动物种类</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.animal+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">数量</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">耳标号从(猪)1350481、(禽)SM</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.markStart+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">至(猪)1350481、(禽)SM</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.markEnd+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">用途</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.purpose+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">当前地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.nowPlace+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">动物产地检疫申报基本信息报告表照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.photo+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n");
                }
                if (data.form == 11) { //跨省销售用产地检疫申报单(动物A)
                    //给页面赋值 跨省销售用产地检疫申报单(动物A)
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">养殖档案是否建立</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.build+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">畜主</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.owners+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">购买人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.buyer+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">购买人电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.buyerPhone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">动物种类</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.animalType+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">数量</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">耳标号从1350481</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.starEar+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">至1350381</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.endEar+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">启运地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.starAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">村</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.village+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">当前地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.nowAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">到达省、市(州)名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.arriveCityName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">到达县乡村名称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.arriveTownName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">用途</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.purpose+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">承运人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carry+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">承运人电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.carryPhone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">运载方式</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.transportation+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">运载工具消毒药品</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.drug+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">动物状态照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.animalPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">运载车辆图片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.carPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">生猪运输车辆备案表</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.pigCarPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">销售时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">农产品合格证/追溯码</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.certificatePhoto+"' type=\"text\" autocomplete=\"off\" class=\"class\timg-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "\n");
                }
                if (data.form == 12) { //跨省销售用产地检疫申报单(动物B)
                    //给页面赋值 跨省销售用产地检疫申报单(动物B)
                    $("#showContent").empty();
                    $("#showContent").append("\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">申报人(个人填写名字,单位填写单位全称)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.declarant+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">联系电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.phone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">购买人</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.buyer+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">购买人电话</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.buyerPhone+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">动物种类</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.animalType+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">数量(头、羽)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.number+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">耳标号从(猪)1350481、(禽）SM</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.starEar+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">至(猪)1350481(禽)SM</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.endEar+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\t\n" +
                        "<label class=\"col-lg-2 control-label\">用途</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.purpose+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">启运地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.starAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">村名</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.villageName+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">当前地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.nowAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">到达地点</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.arriveAddress+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">县乡村</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.town+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">屠宰或饲养场全称</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.slaughter+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">动物状态图片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.animalPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">动物运载车辆图片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.carPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">生猪运输车辆备案表</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.pigCarPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">销售时间</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleDate+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">拟出售动物抽样检测动物耳标号1350481</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.saleAnimalEar+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">检测报告单照片(猪售辖区外禽类跨省出售)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.reportPhoto+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">准调证照片(出售到永安辖区外,本省内时)</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.certificatePhoto+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "<div class=\"row\">\t\n" +
                        "<label class=\"col-lg-2 control-label\">农产品合格证/追溯码照片</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <img src='"+dat.data.agriculturePhoto+"' type=\"text\" autocomplete=\"off\" class=\"class img-responsive\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "<label class=\"col-lg-2 control-label\">备注</label>\n" +
                        "                                    <div class=\"col-lg-4\">\n" +
                        "                                        <div class=\"form-group\">\n" +
                        "                                            <input readonly value='"+dat.data.remark+"' type=\"text\" autocomplete=\"off\" class=\"form-control\">\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "</div>\n" +
                        "\n" +
                        "\n");
                }
                initTree();
                $('#myModalView2').modal('show');
            }
        }
    });
}

function saveRecord() {
    if(!validateForm()) return false;
    var postdata = {
        styId: styId,
        status: $('input[name="text_status"]:checked').val(),
    };
    $.ajax({
        url: "/home/approval",
        type: "post",
        data: JSON.stringify(postdata),
        contentType: "application/json",
        dataType: "json",
        success: function (dat) {
            if (dat.code === "200") {
                $('#myModalView2').modal('hide');
                swal("审批成功!", "请继续操作", "success");
                $("#tableList5").bootstrapTable("refreshOptions", {pageNumber: 1});
            }
        }
    });
}

function initTree() {
    var url = "/dept/treeData";
    var options = {
        id: "tree",
        treeId: "treeId",
        url: url,
        expandLevel: 2,
        onClick: zOnClick
    };
    $.tree.init(options);
}

function zOnClick(event, treeId, treeNode) {
    var treeId = treeNode.id;
    var treeName = treeNode.name;
    $("#treeId").val(treeId);
    $("#treeName").val(treeName);
    getReviewer(treeId, null);
}

function getReviewer(dept, userid) {

    let postdata = {
        types: types,
        id: rid,
        deptid: dept
    };
    $.ajax({
        type: "post",
        url: "/home/getReviewer",
        dataType: "json",
        data: JSON.stringify(postdata),
        contentType: "application/json",
        success: function (data, status) {
            $("#text_reviewer").empty();
            $.each(data, function (index, reviewer) {
                $("#text_reviewer").append("<option selected value=\"" + reviewer.id + "\">" + reviewer.userName + "</option>");
            })
        }
    });
}

$(function () {
    $('input[type=radio][name=text_status]').change(function () {
        if ($(this).val() == 3) {
            $("#Approval").show();
        } else {
            $("#Approval").hide();
        }
    });
})

function validateForm() {
    //validate方法参数可选
    return $("#myform").validate({
        rules: {
            text_reviewer: {
                required: true,//必填
            },
        },
        //错误信息提示
        messages: {
            text_reviewer: {
                required: "(必填)",
            },
        },
    }).form();
}